<?php
class Option {

    const
        FLASH_TYPE_SUCCESS='success',
        FLASH_TYPE_INFO='info',
        FLASH_TYPE_WARNING='warning',
        FLASH_TYPE_ERROR='danger',
    
        ITEM_TYPE_PRODUCT=1,
        ITEM_TYPE_IMAGE=2,
        ITEM_TYPE_VIDEO=3,
        ITEM_TYPE_ARTICLE=4,
        ITEM_TYPE_EVENT=5,
            
        ARTICLE_TYPE_NORMAL=1,
        ARTICLE_TYPE_URL=2,
        ARTICLE_TYPE_NEWS=3,
        ARTICLE_TYPE_EVENT=4,
        ARTICLE_TYPE_CAREER=5,
        ARTICLE_TYPE_PROMOTION=6,
        ARTICLE_TYPE_ACCOUNT_DIRECTORY=7,
        ARTICLE_TYPE_CONTACT_US=8,
        ARTICLE_TYPE_CATALOG=9,
        ARTICLE_TYPE_HOME=99,
            
        LAYOUT_1_COLUMN=1,
        LAYOUT_2_COLUMNS=2,
        LAYOUT_3_COLUMNS=3,
            
        SECTION_NAVIGATION_MENU=1,
        SECTION_TOP_MENU_1=2,
        SECTION_TOP_MENU_2=3,
        SECTION_HEADER=11,
        SECTION_SIDEBAR_1=21,
        SECTION_SIDEBAR_2=22,
        SECTION_FOOTER=31,
        SECTION_FOOTER_MENU_1=32,
        SECTION_FOOTER_MENU_2=33,
        SECTION_HEADER_SCRIPT=41,
        SECTION_BODY_SCRIPT=42,
        SECTION_FOOTER_SCRIPT=43,
        SECTION_PAGE_BREADCRUMBS=50,
    
        USER_ROLE_WEBMASTER = 1,
        USER_ROLE_SUPER_ADMIN = 2,
        USER_ROLE_ADMIN = 3,
        USER_ROLE_STAFF = 4,
        USER_ROLE_MODERATOR = 5,
        
        USER_ROLE_RETAILER = 11, // sells to public in a shop
        USER_ROLE_TRADER = 12, // buys & sells in a very far away place
        USER_ROLE_DEALER = 13, // buys & sells a particular type of goods/ particular company's products
        USER_ROLE_MERCHANT = 14, // buys & sells large quantity of goods
        USER_ROLE_WHOLESALER = 15, // sells large quantities at low prices.
            
        USER_ROLE_TRANSIENT = 21,
        USER_ROLE_MEMBER = 22,
        USER_ROLE_PREMIUM_MEMBER = 23,
        USER_ROLE_VIP = 24,
        USER_ROLE_VVIP = 25,
        
        USER_ROLE_GUEST = 99,
        
        GENDER_MALE = 'm',
        GENDER_FEMALE = 'f',
            
        LANGUAGE_ENGLISH = 'en',
        LANGUAGE_CHINESE = 'zh_cn',
        LANGUAGE_MALAY = 'ms_my',
            
        ETHNIC_CHINESE = 1,
        ETHNIC_MALAY = 2,
        ETHNIC_INDIAN = 3,
        ETHNIC_OTHERS = 999,
            
        MARITAL_STATUS_SINGLE = 1,
        MARITAL_STATUS_COMPLICATED = 6,
        MARITAL_STATUS_IN_A_RELATIONSHIP = 7,
        MARITAL_STATUS_ENGAGED = 5,
        MARITAL_STATUS_MARRIED = 2,
        MARITAL_STATUS_DIVORCED = 4,
        MARITAL_STATUS_WIDOWED = 3,
            
        RELIGION_CHRISTIANITY = 1,
        RELIGION_ISLAM = 2,
        RELIGION_IRRELIGIOUS = 3,
        RELIGION_HINDUISM = 4,
        RELIGION_CHINESE_TRADITIONAL_RELIGION = 5,
        RELIGION_BUDDHISM = 6,
        RELIGION_ANIMIST = 7,
        RELIGION_AFRICAN_TRADITIONAL_RELIGION = 8,
        RELIGION_SIKHISM = 9,
        RELIGION_JUCHE = 10,
        RELIGION_SPIRITISM = 11,
        RELIGION_JUDAISM = 12,
        RELIGION_BAHA = 13,
        RELIGION_JAINISM = 14,
        RELIGION_SHINTO = 15,
        RELIGION_CAO_DAI = 16,
        RELIGION_ZOROASTRIANISM = 17,
        RELIGION_TENRIKYO = 18,
        RELIGION_NEO_PAGANISM = 19,
        RELIGION_UNITARIAN_UNIVERSALISM = 20,
        RELIGION_RASTAFARI_MOVEMENT = 21,
        RELIGION_OTHERS=999,
            
        STATUS_ACTIVE = 1,
        STATUS_INACTIVE = 2,
        STATUS_NEW = 3,
        STATUS_UPDATED = 4,
        STATUS_EXPIRED = 5,
        STATUS_AWAITING_REVIEW = 6,
        STATUS_DISAPPROVED = 7,
        STATUS_SUSPENDED = 8,
        STATUS_BLOCKED =9,
        STATUS_AS_ACCOUNT=996,
        STATUS_AS_USER=997,
        STATUS_ARCHIVED = 998,
        STATUS_DELETED = 999,
            
        AVAILABILITY_AVAILABLE = 1,
        AVAILABILITY_SOLD = 2,
        AVAILABILITY_OUT_OF_STOCK = 3,
        AVAILABILITY_DISCONTINUE = 4,
        AVAILABILITY_OFFLINE = 999,
            
        PAYMENT_STATUS_UNPAID = 0,
        PAYMENT_STATUS_PAID = 1,
        PAYMENT_STATUS_PENDING = 2,
        PAYMENT_STATUS_REFUND = 3,
            
        WEIGHT_UNIT_KG = 'kg',
        WEIGHT_UNIT_LB = 'lb',
            
        DIMENSION_UNIT_CM = 'cm',
        DIMENSION_UNIT_MM = 'mm',
        DIMENSION_UNIT_INCH = 'inch',

        COLOR_WHITE = '#FFFFFF',
        COLOR_SILVER = '#C0C0C0',
        COLOR_GRAY = '#808080',
        COLOR_BLACK = '#000000',
        COLOR_PINK = '#FFC0CB',
        COLOR_RED = '#FF0000',
        COLOR_MAROON = '#800000',
        COLOR_YELLOW = '#FFFF00',
        COLOR_ORANGE = '#FFA500',
        COLOR_GOLD = '#FFD700',
        COLOR_OLIVE = '#808000',
        COLOR_GREEN = '#008000',
        COLOR_BLUE = '#0000FF',
        COLOR_NAVY = '#000080',
        COLOR_FUCHSIA = '#FF00FF',
        COLOR_PURPLE = '#800080',
            
        OPTION_END = true
    ;
    
    public static function itemType($id=null){
        $option=array(
            self::ITEM_TYPE_PRODUCT=>Lang::t('opt.lbl.item.type.product'),
            self::ITEM_TYPE_IMAGE=>Lang::t('opt.lbl.item.type.image'),
            self::ITEM_TYPE_VIDEO=>Lang::t('opt.lbl.item.type.video'),
            self::ITEM_TYPE_ARTICLE=>Lang::t('opt.lbl.item.type.article'),
            self::ITEM_TYPE_EVENT=>Lang::t('opt.lbl.item.type.event'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }
    
    public static function articleType($id=null){
        $option=array(
            self::ARTICLE_TYPE_NORMAL=>Lang::t('opt.lbl.article.type.normal'),
            self::ARTICLE_TYPE_URL=>Lang::t('opt.lbl.article.type.url'),
            self::ARTICLE_TYPE_NEWS=>Lang::t('opt.lbl.article.type.news'),
            self::ARTICLE_TYPE_EVENT=>Lang::t('opt.lbl.article.type.event'),
            self::ARTICLE_TYPE_CAREER=>Lang::t('opt.lbl.article.type.career'),
            self::ARTICLE_TYPE_PROMOTION=>Lang::t('opt.lbl.article.type.promotion'),
            self::ARTICLE_TYPE_ACCOUNT_DIRECTORY=>Lang::t('opt.lbl.article.type.account.directory'),
            self::ARTICLE_TYPE_CONTACT_US=>Lang::t('opt.lbl.article.type.contact.us'),
            self::ARTICLE_TYPE_CATALOG=>Lang::t('opt.lbl.article.type.catalog'),
            self::ARTICLE_TYPE_HOME=>Lang::t('opt.lbl.article.type.home'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }
    
    public static function layoutType($id=null){
        $option=array(
            self::LAYOUT_1_COLUMN=>Lang::t('opt.lbl.layout.1.column'),
            self::LAYOUT_2_COLUMNS=>Lang::t('opt.lbl.layout.2.columns'),
            self::LAYOUT_3_COLUMNS=>Lang::t('opt.lbl.layout.3.columns'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }
    
    public static function sectionType($id=null){
        $option=array(
            self::SECTION_NAVIGATION_MENU=>Lang::t('opt.lbl.section.navigation.menu'),
            self::SECTION_TOP_MENU_1=>Lang::t('opt.lbl.section.top.menu.1'),
            self::SECTION_TOP_MENU_2=>Lang::t('opt.lbl.section.top.menu.2'),
            self::SECTION_HEADER=>Lang::t('opt.lbl.section.header'),
            self::SECTION_SIDEBAR_1=>Lang::t('opt.lbl.section.sidebar.1'),
            self::SECTION_SIDEBAR_2=>Lang::t('opt.lbl.section.sidebar.2'),
            self::SECTION_FOOTER=>Lang::t('opt.lbl.section.footer'),
            self::SECTION_FOOTER_MENU_1=>Lang::t('opt.lbl.section.footer.menu.1'),
            self::SECTION_FOOTER_MENU_2=>Lang::t('opt.lbl.section.footer.menu.2'),
            self::SECTION_HEADER_SCRIPT=>Lang::t('opt.lbl.section.header.script'),
            self::SECTION_BODY_SCRIPT=>Lang::t('opt.lbl.section.body.script'),
            self::SECTION_FOOTER_SCRIPT=>Lang::t('opt.lbl.section.footer.script'),
            self::SECTION_PAGE_BREADCRUMBS=>Lang::t('opt.lbl.section.breadcrumbs'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }
    
    public static function userRole($id = null) {
        $option = array(
            self::USER_ROLE_WEBMASTER => Lang::t('opt.lbl.user.role.webmaster'),
            self::USER_ROLE_SUPER_ADMIN => Lang::t('opt.lbl.user.role.super.admin'),
            self::USER_ROLE_ADMIN => Lang::t('opt.lbl.user.role.admin'),
            self::USER_ROLE_STAFF => Lang::t('opt.lbl.user.role.staff'),
            self::USER_ROLE_MODERATOR => Lang::t('opt.lbl.user.role.moderator'),
            
            self::USER_ROLE_RETAILER=>Lang::t('opt.lbl.user.role.retailer'),
            self::USER_ROLE_TRADER=>Lang::t('opt.lbl.user.role.trader'),
            self::USER_ROLE_DEALER=>Lang::t('opt.lbl.user.role.dealer'),
            self::USER_ROLE_MERCHANT=>Lang::t('opt.lbl.user.role.merchant'),
            self::USER_ROLE_WHOLESALER=>Lang::t('opt.lbl.user.role.wholesaler'),
            
            self::USER_ROLE_TRANSIENT => Lang::t('opt.lbl.user.role.transient'),
            self::USER_ROLE_MEMBER => Lang::t('opt.lbl.user.role.member'),
            self::USER_ROLE_PREMIUM_MEMBER => Lang::t('opt.lbl.user.role.premium.member'),
            self::USER_ROLE_VIP => Lang::t('opt.lbl.user.role.vip'),
            self::USER_ROLE_VVIP => Lang::t('opt.lbl.user.role.vvip'),
            self::USER_ROLE_GUEST => Lang::t('opt.lbl.user.role.guest'),
        );
        
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function adminRole($id = null) {
        $option = array(
            self::USER_ROLE_WEBMASTER => Lang::t('opt.lbl.user.role.webmaster'),
            self::USER_ROLE_SUPER_ADMIN => Lang::t('opt.lbl.user.role.super.admin'),
            self::USER_ROLE_ADMIN => Lang::t('opt.lbl.user.role.admin'),
            self::USER_ROLE_STAFF => Lang::t('opt.lbl.user.role.staff'),
            self::USER_ROLE_MODERATOR => Lang::t('opt.lbl.user.role.moderator'),
        );
        asort($option);
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function merchantRole($id=null){
        $option = array(
            self::USER_ROLE_RETAILER=>Lang::t('opt.lbl.user.role.retailer'),
            self::USER_ROLE_TRADER=>Lang::t('opt.lbl.user.role.trader'),
            self::USER_ROLE_DEALER=>Lang::t('opt.lbl.user.role.dealer'),
            self::USER_ROLE_MERCHANT=>Lang::t('opt.lbl.user.role.merchant'),
            self::USER_ROLE_WHOLESALER=>Lang::t('opt.lbl.user.role.wholesaler'),
        );
        asort($option);
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }
    
    public static function memberRole($id = null) {
        $option = array(
            self::USER_ROLE_TRANSIENT => Lang::t('opt.lbl.user.role.transient'),
            self::USER_ROLE_MEMBER => Lang::t('opt.lbl.user.role.member'),
            self::USER_ROLE_PREMIUM_MEMBER => Lang::t('opt.lbl.user.role.premium.member'),
            self::USER_ROLE_VIP => Lang::t('opt.lbl.user.role.vip'),
            self::USER_ROLE_VVIP => Lang::t('opt.lbl.user.role.vvip'),
            self::USER_ROLE_GUEST => Lang::t('opt.lbl.user.role.guest'),
        );
        asort($option);
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function gender($id = null) {
        $option = array(
            self::GENDER_MALE => Lang::t('opt.lbl.gender.male'),
            self::GENDER_FEMALE => Lang::t('opt.lbl.gender.female'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function language($id = null) {
        $option = array(
            self::LANGUAGE_ENGLISH => Lang::t('opt.lbl.language.english'),
            self::LANGUAGE_CHINESE => Lang::t('opt.lbl.language.chinese'),
            self::LANGUAGE_MALAY => Lang::t('opt.lbl.language.malay'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function country($id = null) {
        Yii::import('application.extensions.geoip.GeoIP');
        $option = array_combine(GeoIP::$COUNTRY_CODES, GeoIP::$COUNTRY_NAMES);
        asort($option);
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function ethnic($id = null) {
        $option = array(
            self::ETHNIC_CHINESE => Lang::t('opt.lbl.ethnic.chinese'),
            self::ETHNIC_MALAY => Lang::t('opt.lbl.ethnic.malay'),
            self::ETHNIC_INDIAN => Lang::t('opt.lbl.ethnic.indian'),
            self::ETHNIC_OTHERS => Lang::t('opt.lbl.ethnic.others'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function maritalStatus($id = null) {
        $option = array(
            self::MARITAL_STATUS_SINGLE => Lang::t('opt.lbl.marital.status.single'),
            self::MARITAL_STATUS_COMPLICATED => Lang::t('opt.lbl.marital.status.complicated'),
            self::MARITAL_STATUS_IN_A_RELATIONSHIP => Lang::t('opt.lbl.marital.status.in.a.relationship'),
            self::MARITAL_STATUS_ENGAGED => Lang::t('opt.lbl.marital.status.engaged'),
            self::MARITAL_STATUS_MARRIED => Lang::t('opt.lbl.marital.status.married'),
            self::MARITAL_STATUS_DIVORCED => Lang::t('opt.lbl.marital.status.divorced'),
            self::MARITAL_STATUS_WIDOWED => Lang::t('opt.lbl.marital.status.widowed'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function religion($id = null) {
        $option = array(
            self::RELIGION_CHRISTIANITY => Lang::t('opt.lbl.religion.christianity'),
            self::RELIGION_ISLAM => Lang::t('opt.lbl.religion.islam'),
            self::RELIGION_IRRELIGIOUS => Lang::t('opt.lbl.religion.irreligious'),
            self::RELIGION_HINDUISM => Lang::t('opt.lbl.religion.hinduism'),
            self::RELIGION_CHINESE_TRADITIONAL_RELIGION => Lang::t('opt.lbl.religion.chinese.traditional.religion'),
            self::RELIGION_BUDDHISM => Lang::t('opt.lbl.religion.buddhism'),
            self::RELIGION_ANIMIST => Lang::t('opt.lbl.religion.animist'),
            self::RELIGION_AFRICAN_TRADITIONAL_RELIGION => Lang::t('opt.lbl.religion.african.traditional.religion'),
            self::RELIGION_SIKHISM => Lang::t('opt.lbl.religion.sikhism'),
            self::RELIGION_JUCHE => Lang::t('opt.lbl.religion.juche'),
            self::RELIGION_SPIRITISM => Lang::t('opt.lbl.religion.spiritism'),
            self::RELIGION_JUDAISM => Lang::t('opt.lbl.religion.judaism'),
            self::RELIGION_BAHA => Lang::t('opt.lbl.religion.baha'),
            self::RELIGION_JAINISM => Lang::t('opt.lbl.religion.jainism'),
            self::RELIGION_SHINTO => Lang::t('opt.lbl.religion.shinto'),
            self::RELIGION_CAO_DAI => Lang::t('opt.lbl.religion.cao.dai'),
            self::RELIGION_ZOROASTRIANISM => Lang::t('opt.lbl.religion.zoroastrianism'),
            self::RELIGION_TENRIKYO => Lang::t('opt.lbl.religion.tenrikyo'),
            self::RELIGION_NEO_PAGANISM => Lang::t('opt.lbl.religion.neo.paganism'),
            self::RELIGION_UNITARIAN_UNIVERSALISM => Lang::t('opt.lbl.religion.unitarian.universalism'),
            self::RELIGION_RASTAFARI_MOVEMENT => Lang::t('opt.lbl.religion.rastafari.movement'),
            self::RELIGION_OTHERS=>Lang::t('opt.lbl.religion.others'),
        );
        asort($option);
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function recordStatus($id = null) {
        $option = array(
            self::STATUS_ACTIVE => Lang::t('opt.lbl.status.active'),
            self::STATUS_INACTIVE => Lang::t('opt.lbl.status.inactive'),
            self::STATUS_NEW => Lang::t('opt.lbl.status.new'),
            self::STATUS_UPDATED => Lang::t('opt.lbl.status.updated'),
            self::STATUS_EXPIRED => Lang::t('opt.lbl.status.expired'),
            self::STATUS_AWAITING_REVIEW => Lang::t('opt.lbl.status.awaiting.review'),
            self::STATUS_DISAPPROVED => Lang::t('opt.lbl.status.disapproved'),
            self::STATUS_SUSPENDED=>Lang::t('opt.lbl.status.suspended'),
            self::STATUS_BLOCKED => Lang::t('opt.lbl.status.blocked'),
            self::STATUS_ARCHIVED => Lang::t('opt.lbl.status.archived'),
            self::STATUS_DELETED => Lang::t('opt.lbl.status.deleted'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function availability($id = null) {
        $option = array(
            self::AVAILABILITY_OFFLINE => Lang::t('opt.lbl.availability.offline'),
            self::AVAILABILITY_AVAILABLE => Lang::t('opt.lbl.availability.available'),
            self::AVAILABILITY_SOLD => Lang::t('opt.lbl.availability.sold'),
            self::AVAILABILITY_OUT_OF_STOCK => Lang::t('opt.lbl.availability.out.of.stock'),
            self::AVAILABILITY_DISCONTINUE => Lang::t('opt.lbl.availability.discontinue'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function paymentStatus($id = null) {
        $option = array(
            self::PAYMENT_STATUS_UNPAID => Lang::t('opt.lbl.payment.status.unpaid'),
            self::PAYMENT_STATUS_PAID => Lang::t('opt.lbl.payment.status.paid'),
            self::PAYMENT_STATUS_PENDING => Lang::t('opt.lbl.payment.status.pending'),
            self::PAYMENT_STATUS_REFUND => Lang::t('opt.lbl.payment.status.refund'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function weightUnit($id = null) {
        $option = array(
            self::WEIGHT_UNIT_KG => Lang::t('opt.lbl.weight.unit.kg'),
            self::WEIGHT_UNIT_LB => Lang::t('opt.lbl.weight.unit.lb'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function dimensionUnit($id = null) {
        $option = array(
            self::DIMENSION_UNIT_CM => Lang::t('opt.lbl.dimension.unit.cm'),
            self::DIMENSION_UNIT_MM => Lang::t('opt.lbl.dimension.unit.mm'),
            self::DIMENSION_UNIT_INCH => Lang::t('opt.lbl.dimension.unit.inch'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }

    public static function color($id = null){
        $option = array(
            self::COLOR_WHITE => Lang::t('opt.lbl.color.white'),
            self::COLOR_SILVER => Lang::t('opt.lbl.color.silver'),
            self::COLOR_GRAY => Lang::t('opt.lbl.color.gray'),
            self::COLOR_BLACK => Lang::t('opt.lbl.color.black'),
            self::COLOR_PINK => Lang::t('opt.lbl.color.pink'),
            self::COLOR_RED => Lang::t('opt.lbl.color.red'),
            self::COLOR_MAROON => Lang::t('opt.lbl.color.maroon'),
            self::COLOR_YELLOW => Lang::t('opt.lbl.color.yellow'),
            self::COLOR_ORANGE => Lang::t('opt.lbl.color.orange'),
            self::COLOR_GOLD => Lang::t('opt.lbl.color.gold'),
            self::COLOR_OLIVE => Lang::t('opt.lbl.color.olive'),
            self::COLOR_GREEN => Lang::t('opt.lbl.color.green'),
            self::COLOR_BLUE => Lang::t('opt.lbl.color.blue'),
            self::COLOR_NAVY => Lang::t('opt.lbl.color.navy'),
            self::COLOR_FUCHSIA => Lang::t('opt.lbl.color.fuchsia'),
            self::COLOR_PURPLE => Lang::t('opt.lbl.color.purple'),
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }
    
    public static function currency($id=null){
        $option=array(
            'AUD'=>'AUD - Australian Dollars (AUD$)',
            'BRL'=>'BRL - Brazilian Real (R$)',
            'CAD'=>'CAD - Canadian Dollars (CAD$)',
            'CHF'=>'CHF - Swiss Francs (CHF)',
            'CZK'=>'CZK - Czech Koruny (CZK)',
            'DKK'=>'DKK - Danish Kroner (Kr)',
            'EUR'=>'EUR - Euros ()',
            'GBP'=>'GBP - British Pounds ()',
            'HKD'=>'HKD - Hong Kong Dollar (HKD$)',
            'HUF'=>'HUF - Hungarian Forint (Ft)',
            'ILS'=>'ILS - Israeli New Shekels ()',
            'JPY'=>'JPY - Japanese Yen ()',
            'MXN'=>'MXN - Mexican Pesos (MXN$)',
            'MYR'=>'MYR - Malaysian Ringgist (RM)',
            'NOK'=>'NOK - Norwegian Kroner (kr)',
            'NZD'=>'NZD - New Zealand Dollar (NZD$)',
            'PHP'=>'PHP - Philippine Pesos (Php)',
            'PLN'=>'PLN - Polish Zlotych (Z)',
            'SEK'=>'SEK - Swedish Kronor (kr)',
            'SGD'=>'SGD - Singapore Dollar (SGD$)',
            'THB'=>'THB - Thai Baht ()',
            'TWD'=>'TWD - Taiwan New Dollars (NT$)',
            'USD'=>'USD - U.S. Dollars ($)',
        );
        if($id===null) return $option; return isset($option[$id])? $option[$id]: null;
    }
    
}